<template>

    <tr class="info">
      <td>{{i.name}}</td>
      <td>{{i.email}}</td>
      <td><a class="btn btn-default" href="#" @click="deletes" role="button">删除</a></td>
    </tr>

</template>

<script>
export default {
  props: {
    i: Object,
    deleteUser: Function,
    index: Number

  },
  methods: {
    deletes () {
      const {i, deleteUser, index} = this
      if (window.confirm('确定删除的信息吗' + i.name)) {
        deleteUser(index)
      }
    }
  }
}
</script>

<style>
</style>
